-- GENERATED SPELL FOR [Spectral Performer] --


function spell0_16473(pUnit, Event) --@Bad Poetry,n/a--
pUnit:FullCastSpellOnTarget(29679,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16473', 11000, 1)
end

function spell1_16473(pUnit, Event) --@Curtain Call,Self--
pUnit:FullCastSpellOnTarget(29680,pUnit)
pUnit:RegisterEvent('Sorts_16473', 621, 1)
end

function Sorts_16473(pUnit, Event)
local choix_sorts_16473 = math.random(0, 1)
if choix_sorts_16473 == 0 then
pUnit:RegisterEvent('spell0_16473', 1, 1)
end
if choix_sorts_16473 == 1 then
pUnit:RegisterEvent('spell1_16473', 1, 1)
end
end

function mob16473_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16473', math.random(1500, 3000), 1)
end

function mob16473_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16473_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16473_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16473, 1, 'mob16473_Action')
RegisterUnitEvent(16473, 2, 'mob16473_Leave')
RegisterUnitEvent(16473, 3, 'mob16473_Kill')
RegisterUnitEvent(16473, 4, 'mob16473_Die')
